package com.apps.globals.global.service.impl;

import com.apps.globals.global.model.po.KupaGlobalPptNamelib;
import com.apps.globals.global.dao.KupaGlobalPptNamelibMapper;
import com.apps.globals.global.service.IKupaGlobalPptNamelibService;
import com.apps.helper.PythonHelper;
import com.apps.sannotation.service.OnRedisCache;
import com.apps.sannotation.service.enums.CacheModel;
import com.apps.sworld.dao.impl.sDaoImpl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 大鹏
 * @since 2020-11-25
 */
@Slf4j
@Service
public class KupaGlobalPptNamelibServiceImpl extends sDaoImpl<KupaGlobalPptNamelibMapper, KupaGlobalPptNamelib> implements IKupaGlobalPptNamelibService
{

    private List<KupaGlobalPptNamelib> pptNamelibs=new ArrayList<>();

    @Override
    public void onLoad()
    {
            pptNamelibs = query();
    }

    @Override
    public List<KupaGlobalPptNamelib> getLibs() {
        return pptNamelibs;
    }

    @Override
    public void onUpdate(KupaGlobalPptNamelib pptNamelib)
    {

    }

    @Override
    public void onCreate(KupaGlobalPptNamelib pptNamelib)
    {
         pptNamelibs.add(pptNamelib);
    }

}
